package com.heima.service;

import com.heima.pojo.dto.NodeQueryDTO;
import com.heima.pojo.entity.Business;
import com.heima.pojo.entity.Node;
import com.heima.pojo.entity.TbNode;
import com.heima.pojo.vo.TbSkuPageVO;
import com.heima.pojo.vo.VendingMachineVO;

import java.util.List;

public interface NodeService {
    TbSkuPageVO search(NodeQueryDTO nodeQueryDTO);

    List<Business> searchBusiness();

    Boolean insertBusiness(Node node);

    List<VendingMachineVO> getVmByNodeId(String nodeId);

    Boolean update(String nodeId, TbNode tbNode);

    Boolean deleteNode(String nodeId);
}